package cn.iocoder.yudao.module.hqchart.pojo;

import cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author pokbrin
 * @date 2023-07-18 18:06
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class StockHQChartResultVO<T> extends BaseHQChartResultVO {

    private T stock;

    public static <T> StockHQChartResultVO<T> success(T stock) {
        StockHQChartResultVO<T> result = new StockHQChartResultVO<>();
        result.code = GlobalErrorCodeConstants.SUCCESS.getCode();
        result.stock = stock;
        result.message = "";
        return result;
    }
}
